package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.response.PageDecorationResponse;
import com.ytjj.qmyx.mall.model.PageDecoration;
import com.ytjj.qmyx.mall.model.PageDecorationImg;
import com.ytjj.qmyx.mall.model.PageDecorationProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @Version: 1.0
 */
public interface PageDecorationDao {

    List<PageDecoration> getList(String title);

    List<PageDecorationResponse> selectList();

    List<PageDecorationResponse> searchProduct(String productName);

    PageDecorationResponse getProductInfo(Integer productId);

    void pageTitle(PageDecoration pageDecoration);

    void pageProduct(PageDecorationProduct pageDecorationProduct);

    void pageImg(PageDecorationImg pageDecorationImg);

    PageDecoration getPageDecoration(Integer id);

    List<Integer> getProSubscript(@Param("pageId") Integer pageId);

    List<Integer> getImgSubscript(@Param("pageId") Integer pageId, @Param("type") String type);

    PageDecorationProduct getPageProduct(@Param("pageId") Integer pageId, @Param("subscript") Integer subscript);

    List<PageDecorationImg> getPageImg(@Param("pageId") Integer pageId, @Param("type") String type, @Param("subscript") Integer subscript);

    void updatePage(@Param("id") Integer id, @Param("title") String title,
                    @Param("backColor") String backColor, @Param("remarks") String remarks);

    void deleteImg(Integer pageId);

    void deleteProduct(Integer pageId);

    void updateStatus(@Param("id") Integer id, @Param("status") Integer status);
}
